import { cancelAfterSale } from '@/api/after-sale'

// 取消售后
export const confirmCancelAftersale = async (sn:string) => {
  const res = await cancelAfterSale(sn)
  if (res.data.success) {
    uni.showToast({
      title: '取消成功',
      icon: 'none',
      duration: 2000
    })
    return true
  } else {
    return false
  }
}
